package ua.kpi_java_training5.kereia.module2;
import java.util.Random;
/**
 * Created with IntelliJ IDEA.
 * User: Alex
 * Date: 30.05.13
 * Time: 17:15
 * To change this template use File | Settings | File Templates.
 */
public class Predator extends Fish {
    Predator(int width, int length, int aquariumWidth, int aquariumLength) {
        super(width, length, aquariumWidth, aquariumLength);
    }

    public void go(int direction, int steps) {
        switch (direction) {
            case 1: setWidth(goUp(steps));
                break;
            case 2: setWidth(goDown(steps));
                break;
            case 3: setLength(goRight(steps));
                break;
            case 4: setLength(goLeft(steps));
                break;
        }
    }
}
